<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // while (条件表达式) {
        //     //循环体
        // }
        //当表达式为真，就执行循环体，当表达式为假时，就不执行循环体
        var num = 1;
        while (num <= 100) {
            console.log('你好');
            num++;
        }

    </script>
</head>

<body>

</body>

</html>